package com.mbc.hr.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_Holiday")
@NamedQueries({
	@NamedQuery(name="Holiday.findAll",query="SELECT h FROM Holiday h"),
	@NamedQuery(name="Holiday.findBetween",query="SELECT h FROM Holiday h WHERE h.holidayDate >= :startDate AND h.holidayDate <= :endDate"),
	@NamedQuery(name="Holiday.getHolidayCount",query="SELECT COUNT(h.holidayDate) FROM Holiday h WHERE h.holidayDate >= :startDate AND h.holidayDate <= :endDate")
})
public class Holiday implements Serializable {

	@Id
	private Long holidayID;
	private Date holidayDate;
	private String description;

	public Date getHolidayDate(){
		return holidayDate;
	}

	public void setHolidayDate(Date holiday){
		this.holidayDate = holiday;
	}

	public String getDescription(){
		return description;
	}

	public void setDescription(String description){
		this.description = description;
	}

	public Long getHolidayID() {
		return holidayID;
	}

	public void setHolidayID(Long holidayID) {
		this.holidayID = holidayID;
	}


}
